<template>
	<view>
		<web-view :src="url" v-if="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url:""
			}
		},
		onLoad(options) {
      // #ifdef APP-PLUS
      var args = plus.runtime.arguments;
      if(args){
        app.$vm.setShareDetail(args);
      }
      // #endif
			let str = decodeURIComponent(options.url)
			let reg = /(https?|http|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/g;
			str = str.match(reg);
			this.url = str[0];
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
